print("请输入十个整数：")
x=[]
s=int(input().split())
x.extend(s)
print(x[::-2])
print(x[8::-2])
